#pragma once
#include <tchar.h>
#include <iostream>
#include <objbase.h>
#include <comutil.h>
using namespace std;

class DBProc
{
private:
public:
	DBProc(void);
	~DBProc(void);
	_bstr_t GetMeanOfWord(_bstr_t word);
	bool AddWord(_bstr_t pronoun,_bstr_t word,_bstr_t dic,
		_bstr_t mean,_bstr_t type,_bstr_t exam,int flag = 0);//flag = 0:add all,flag = 1:add only mean
	bool DeleteWord(_bstr_t word);
	_bstr_t CountWord(_bstr_t dicname = "Anh-Viet");
	_bstr_t ListWord();
	bool AddDic(_bstr_t type,_bstr_t name);
};

